<?
include "m_head.html";
$str="select contact_id from uu_products where id=$pid";
$GLOBALS['le']->query($str);
$GLOBALS['le']->fetch_assoc();
$contact_id=$GLOBALS['le']->f("contact_id");
$tprice=$soap->get_Dynamic_Price_Merge($pid,"",2,"","",2);
$text="购买产品";
if($tprice==0) $text="免费索取";
$lid=$contact_id;
$str="select * from uu_land where id=$lid";

$GLOBALS['le']->query($str);
$l_info=$GLOBALS['le']->fetch_assoc();

if($l_info['area']){
	$area=explode("|",$l_info['area']);
	$str="select area_id,area_name from uu_area where area_id in (".implode(",",$area).")";
	$GLOBALS['le']->query($str);
	while($row=$GLOBALS['le']->fetch_assoc()){
		$areaT[$row['area_id']]=$row['area_name'];
	}
	$province=$areaT[$area[0]];
	$city=$areaT[$area[1]];
	$county=$areaT[$area[2]];
}

if(strpos($l_info['imgpath'],"16u.com")===false){
	$l_info['imgpath']="http://www.16u.com".$l_info['imgpath'];
}

$baseimg=basename($l_info['imgpath']);
$baseimg=explode(".",$baseimg);
$m_img="m_".$baseimg[0].".".$baseimg[1];
if(!file_exists($path="upload/".$m_img)){
	//echo $path;
}

$jdjj=htmlspecialchars_decode($l_info['bhjq']);
$jdjj=strip_tags($jdjj);
$jdjj=mbsubstr($jdjj,300,"...");

include("tpl/scenic.tpl");
include "m_foot.html";
?>